package com.eagle.common.service;

import java.util.List;

import com.eagle.common.entity.po.UserRRoles;
import com.eagle.common.entity.po.query.UserRRolesQuery;
import com.eagle.common.entity.vo.PaginationResult;
import com.eagle.common.exception.BusinessException;


/**
 * 
 * 用户角色对应表 业务接口
 * 
 */
public interface UserRRolesService {

	/**
	 * 根据条件查询列表
	 */
	public List<UserRRoles> findListByParam(UserRRolesQuery param);

	/**
	 * 根据条件查询列表
	 */
	public Integer findCountByParam(UserRRolesQuery param);

	/**
	 * 分页查询
	 */
	public PaginationResult<UserRRoles> findListByPage(UserRRolesQuery param);

	/**
	 * 新增
	 */
	public Integer add(UserRRoles bean) throws BusinessException;

	/**
	 * 批量新增
	 */
	public Integer addBatch(List<UserRRoles> listBean);

	/**
	 * 根据UserId修改
	 */
	public Integer updateByUserIdAndRoleId(UserRRoles bean,Integer userId,Integer roleId);


	/**
	 * 根据UserIdAndRoleId删除
	 */
	public Integer deleteByUserIdAndRoleId(Integer userId,Integer roleId);


	/**
	 * 根据UserIdAndRoleId查询对象
	 */
	 public UserRRoles getUserRRolesByUserIdAndRoleId(Integer userId,Integer roleId);

}